﻿//#defin INI
using System;
using System.Windows;

namespace Demo_串口
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {

        public MainWindow()
        {
            InitializeComponent();
            DataContext = ViewModel.ViewModel.GetInstance().m_Model_MainWindow;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
        }

        private void Window_Closed(object sender, EventArgs e)
        {
#if INI
            ViewModel.ViewModel.GetInstance().m_Model_MainWindow.INIWrite();
#endif
        }

    }
}
